package com.mf.service.basic;
import com.mf.entity.dto.basic.DtoRolePermission;

import com.mf.entity.req.basic.reqPublic.ReqRelevanceDetailById;
import com.mf.entity.req.basic.search.SearchReqRolePermission;
import com.mf.service.BaseService;


/**
 * 权限角色关联
 *
 *
 */
public interface ServiceRolePermission extends BaseService<DtoRolePermission,SearchReqRolePermission> {
    /**
     * 根据权限id查询绑定数量
     */
    long countByPermissionId(Integer permissionId);

    /**
     * 根据角色id绑定权限
     */
    void savePremByRoleId(ReqRelevanceDetailById reqRelevanceDetailById);
    /**
     * 根据角色id删除绑定权限
     */
    void delPremByRoleId(ReqRelevanceDetailById reqRelevanceDetailById);


}

